package com.qifn.blog.Service;

import com.github.pagehelper.PageInfo;
import com.qifn.blog.Model.Blog;
import com.qifn.blog.Model.Tag;

import java.util.List;

public interface BlogService {
    PageInfo<Blog> adminIndexQueryBlog(int pageNum, int pageSize);
    PageInfo<Blog> adminIndexSearchBlog(String title,String typeId,String recommend,int pageNum,int pageSize);
    boolean adminReleaseBlog(Blog blog,List<Tag> tagIdList);
    Blog adminUpdateBlog(Integer blogId);
    boolean adminReleaseUpdateBlog(Blog blog);
    boolean adminIndexDeleteBlog(Integer blogId);
    PageInfo<Blog> indexQueryBlog(int pageNum, int pageSize);
    List<Blog> indexRecommendBlog();
    PageInfo<Blog> queryBlogByTypeId(Integer typeId,Integer pageNum,Integer pageSize);
    PageInfo<Blog> queryBlogByTagId(Integer tagId,Integer pageNum,Integer pageSize);
    Blog queryBlogByBlogId(Integer blogId);
    PageInfo<Blog> indexSearchBlog(Integer pageNum,Integer pageSize,String keyword);
}
